(xg_update_menubar): Call g_list_next after moving
authorJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Apr 2007 07:34:26 +0000 (07:34 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Tue, 3 Apr 2007 07:34:26 +0000 (07:34 +0000)
menu bar item.

src/gtkutil.c

index fa8e91546ce2b22867ca13c6b5bd825556898365..8dfcf84f0f2da08d7b00ab3f351236e9466a793d 100644 (file)
@@ -2506,6 +2506,7 @@ xg_update_menubar (menubar, f, list, iter, pos, val,
           g_list_free (*list);
           *list = iter = gtk_container_get_children (GTK_CONTAINER (menubar));
           while (nr-- > 0) iter = g_list_next (iter);
+          if (iter) iter = g_list_next (iter);
           val = val->next;
           ++pos;
       }